import {getChildren} from "./public/unils/AutoSidebarUtil";

const series: {} = {
    // "/blogs/senior/informationSystemProjectManager/": [
    //     {
    //         text: "教材",
    //         collapsible: true,
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "知识点",
    //         children: ["c", "d"],
    //     },
    //     {
    //         text: "真题",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/senior/systemArchitectureDesigner/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/senior/systemAnalyst/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/senior/networkPlanningDesigner/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/senior/systemPlanningAndManagementEngineer/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/softwareDesigner/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/systemIntegrationProjectManagementEngineer/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/networkEngineer/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/databaseSystemEngineer/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/informationSecurityEngineer/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/softwareReviewer/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/informationSystemManagementEngineer/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/informationSystemSupervisor/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/multimediaApplicationDesigner/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/embeddedSystemDesigner/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/intermediate/eCommerceDesigner/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/primary/informationProcessingTechnician/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/primary/programmer/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/primary/networkAdministrator/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],
    // "/blogs/primary/informationSystemOperationAdministrator/": [
    //     {
    //         text: "demo1",
    //         children: ["a", "b"],
    //     },
    //     {
    //         text: "demo2",
    //         children: ["c", "d"],
    //     },
    // ],

    // 真题导航开始
    "/blogs/real/senior/informationSystemProjectManager/": [
        {
            text: "1、综合知识",
            children: ["a", "b"],
        },
        {
            text: "2、案例",
            children: ["c", "d"],
        },
        {
            text: "3、论文",
            children: ["c", "d"],
        }
    ],
    "/blogs/real/senior/systemArchitectureDesigner/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/real/senior/systemAnalyst/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/real/senior/networkPlanningDesigner/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/real/senior/systemPlanningAndManagementEngineer/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/real/intermediate/softwareDesigner/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/real/intermediate/systemIntegrationProjectManagementEngineer/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/real/intermediate/networkEngineer/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/real/intermediate/databaseSystemEngineer/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/real/intermediate/informationSecurityEngineer/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/intermediate/softwareReviewer/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/intermediate/informationSystemManagementEngineer/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/intermediate/informationSystemSupervisor/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/intermediate/multimediaApplicationDesigner/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/intermediate/embeddedSystemDesigner/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/intermediate/eCommerceDesigner/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/primary/informationProcessingTechnician/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/primary/programmer/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/primary/networkAdministrator/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ],
    "/blogs/03real/primary/informationSystemOperationAdministrator/": [
        {
            text: "demo1",
            children: ["a", "b"],
        },
        {
            text: "demo2",
            children: ["c", "d"],
        },
    ]
}

function getChildPath(children: string[], path: string) {
    console.log(children)
    console.log(path)
    const childrenNew: string[] = []
    for (var i = 0; i < children.length; i++) {
        childrenNew.push((path.endsWith("/") ? path : (path + "/")) + children[i]);
    }
    console.log(childrenNew)
    return childrenNew;
}

export default series